package com.cy.ppj.dao.mapper.product;

import com.cy.ppj.model.domian.product.ProductType;
import com.cy.ppj.model.vo.ProductTypeTagsVO;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;

@Mapper
public interface ProductTypeMapper extends BaseMapper<ProductType> {

    @Select("SELECT COUNT(1) FROM t_product_type t WHERE t.`name`=#{name}")
    boolean isNameExists(String name);

    List<ProductTypeTagsVO> queryAllProductTypeTags();
    
}
